using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using FytSoa.Domain.Erp;
using SqlSugar;

namespace FytSoa.Application.Erp;

/// <summary>
/// erp-采购申请物料表
/// </summary>
public class ErpPurchaseApplyProductDto : AppEntity
{
    /// <summary>
    /// 申请编号
    /// </summary>
    public long ApplyId { get; set; }

    /// <summary>
    /// 物料编号
    /// </summary>
    [Required]
    public long ProductId { get; set; }

    /// <summary>
    /// 产品
    /// </summary>
    public ErpProduct Product { get; set; }

    /// <summary>
    /// 数量
    /// </summary>
    [Required]
    public int Count { get; set; } = 0;

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 更新人
    /// </summary>
    public string UpdateUser { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }


}